<link href="<?php echo base_url('resources')?>/css/admin/styles.css" rel="stylesheet" type="text/css" />
<?php
//include('includes/leftStaffPanel.php');
?>
<div id="PeopleTableContainer">
<div id="TableContainer"></div>
</div>
	<script type="text/javascript">

		$(document).ready(function () {

		    //Prepare jTable
			$('#TableContainer').jtable({
				title: 'Danh sách công việc',
				paging: true,
                pageSize: 20,
                pageSizeChangeArea: false,
                sorting: true,
                defaultSorting: 'ID ASC',
                actions: {
					listAction: '<?php echo base_url('admin/luongthuong/lay_danh_sach_luong_thuong'); ?>',
                    deleteAction: '<?php echo base_url('admin/luongthuong/xoa_luong_thuong'); ?>',
                    createAction: '<?php echo base_url('admin/luongthuong/them_luong_thuong'); ?>',
                    updateAction: '<?php echo base_url('admin/luongthuong/thay_doi_luong_thuong'); ?>',
                    
				},
				fields: {
					ID:{
                        key: true,
                        create: false,
						edit: false,
						list: true,
						title:'Id',
                        width:'10%',
                        
					},
					Thang:{
						title: 'Tháng',
                        width: '10%',
                        options:[{"Value":"1","DisplayText":"1"},{"Value":"2","DisplayText":"2"},{"Value":"3","DisplayText":"3"},{"Value":"4","DisplayText":"4"},{"Value":"5","DisplayText":"5"},{"Value":"6","DisplayText":"6"},{"Value":"7","DisplayText":"7"},{"Value":"8","DisplayText":"8"},{"Value":"9","DisplayText":"9"},{"Value":"10","DisplayText":"10"},{"Value":"11","DisplayText":"11"},{"Value":"12","DisplayText":"12"}]
                        
					},
                    Nam:{
                        title: 'Năm',
                        width: '10%',
                    },
                    Luong:{
                      title:'Lương',
                      width: '20%',  
                    },
                    Thuong:{
                        title: 'Thưởng',
                        width: '20%',
                    },
                    KPI:{
                        title:'KPI',
                        width: '10%',
                    },
                    MaHoSo:{
                        title: 'Mã Hồ Sơ',
                        width:'10%',
                        options: '<?php echo base_url("/admin/luongthuong/maHoSo"); ?>',
                    }
				}
                
			});

			//Load person list from server
			$('#TableContainer').jtable('load');

		});
        
        

	</script>
 